<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>

<%
String path = request.getContextPath();
String base = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort();
String basePath = base + path;

//login name
String loginName = (String)session.getAttribute("loginName");
//login name
String displayName = (String)session.getAttribute("displayName");
//app language
String lang = (String)session.getAttribute("lang");
if (lang==null) {
	lang = "zh";
}
String IE_version = "edge";
String ua = request.getHeader("user-agent");
if (ua!=null && ua.indexOf("MSIE")!=-1) {
	String version = ua.split("; ")[1].split(" ")[1];
	if ("7.0".equals(version)) {//IE compatible mode
		IE_version = "7";
	}else if ("8.0".equals(version)) {//IE compatible mode
		IE_version = "8";
	} else if ("9.0".equals(version)) {
		IE_version = "9";
	} else if ("10.0".equals(version)) {
		IE_version = "10";
	}
}
%>